package cn.fundview.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * Created by zhuot on 2017/5/17.
 */
@RestController
public class IndexController {

    @Value("${server.port}")
    private String name;

    @RequestMapping("/index")
    public String index(){

        return "hello" + name;
    }
}
